package com.iursp.service;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.core.Authentication;

/**
 * 
 * @ClassName:  RbacService   
 * @Description:权限判断  
 * @author: ruiwu
 * @date:   2018年7月4日 下午5:02:55   
 *
 */
public interface RbacService {

	/**
	 * 
	 * @Title: hasPermission   
	 * @Description: 用于判断有该权限
	 * @param: @param request
	 * @param: @param authentication
	 * @param: @return      
	 * @return: boolean      
	 * @throws
	 */
	boolean hasPermission(HttpServletRequest request, Authentication authentication);

	boolean hasPermissionThirdlib(HttpServletRequest request, Authentication authentication);
}
